<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>jsonp接口</title>
    <script src="http://localhost:3000/static/jquery.min.js"></script>
</head>
<body>
    <h1>jsonp接口</h1>
    <button id="btnJson">点我获取数据</button>
    <script>
        $('#btnJson').click(function(){
            $.ajax({
                url: 'http://localhost:8080/api/jsonp',
                type: 'get',
                dataType: 'jsonp',
                success: function(data){
                    console.log('jsonp接口返回数据：>>>', data)    
                }
            })
        })
    </script>
</body>
</html>